#ifndef __ILI9320_H__
#define __ILI9320_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "includes.h"
#include "rgb_lcd.h"

typedef struct {
  void (*write_cmd)(uint8_t cmd);
  uint16_t (*read_data)();
  void (*write_data)(uint16_t data);
  void (*write_block)(uint16_t *pdata, uint32_t length);
} ili9320_desc_t;

extern int ili930_register_rgb565_lcd(rgb565_lcd_desc_t *plcd, ili9320_desc_t *pili9320);
#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __ILI9320_H__ */